package com.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.entity.User;

public interface UserMapper {
	//根据用户名密码登录
	User login(@Param("userName") String userName,@Param("userPass") String userPass);

	void addUser(User user); //添加 用户

	List<User> listUser();

	User getUserById(Integer id);

	void updateUser(User user);

	void deleteUser(@Param("id") Integer id);
}
